package com.sunchangming.stmdb;

public interface Transaction {

	/**
	 * 把一个lockey加入到AtomicBlock中并上锁
	 * 
	 * @param lockey
	 */
	public void add(Lockey lockey);

	public void begin();

	public void commit();

	public void rollback(int savepoint);

	public <E> E perform(AtomicClosure<E> p) throws Throwable;

}